package com.example.mapper;


import cn.hutool.json.JSONObject;
import com.example.entity.GreenHouse;
import com.example.entity.Sensors;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SensorMapper {

    List<Sensors> getSensorsListByGreenHouseId(Integer id);

    boolean addSensor(Sensors sensor);

    boolean deleteByIdList(@Param("idList") List<Integer> idList);

    boolean updateSensor(Sensors sensor);

    Integer getNum();

    Integer getAliveNum();

    List<JSONObject> getTypeNum();

    void deleteByGreenHouseId(Integer id);
}
